#ifndef __lvgl_desktop_h__
#define __lvgl_desktop_h__


#include "main.h"
#include "lvgl_project.h"
#include "my_system.h"



#define DESKTOP_GIF_SW 0
#define DESKTOP_PNG_BG 1

#define DESKTOP_GIF_PATH "P:/E:/gsm-fm/gsm-fm-simulator/LVGL.Simulator/lvgl_project/image/icon/black bg/gif/"



typedef struct
{
	char p_buf[100];

	lv_obj_t *cont_main;
	lv_obj_t *task;
	lv_anim_t anim_in;
	lv_anim_t anim_out;
	lv_anim_path_t anim_path_in;
	lv_anim_path_t anim_path_out;


    lv_obj_t* cont_select;
    lv_anim_t anim_select;
    lv_anim_path_t  anim_path_select;
    bool select_anim_ready;
    int select_icon;

    lv_obj_t* label1;
    lv_obj_t* image1;
    lv_obj_t* image2;
    lv_obj_t* image3;
    lv_obj_t* image4;
    lv_obj_t* image5;
    lv_obj_t* image6;
    lv_obj_t* image7;
    lv_obj_t* image8;
    lv_obj_t* image9;
    lv_obj_t* image10;
    lv_obj_t* image11;


    lv_obj_t* btn1;
    lv_obj_t* img_gif1;


    lv_task_t* close_task;
    bool close_flag;
    uint32_t close_count;
    uint8_t close_num;

}__lvgl_desktop_data;

extern __lvgl_desktop_data lvgl_desktop_data;




void lvgl_desktop_create(lv_obj_t * Fu);
void lvgl_desktop_close(void);
void lvgl_desktop_hidden(void);

#endif
